package main

import (
	"go-study-history/tank_war/route"
	"go-study-history/tank_war/tank"
	"net/http"
)

func main() {
	//启动websocket监听消息服务
	go tank.OnMessage()
	//坦克控制接口
	route.Init()
	// addr：监听的地址
	// handler：回调函数
	_ = http.ListenAndServe("0.0.0.0:9001", nil)
}
